package ase.assignment.sts.db.impl;

import java.rmi.RemoteException;

import ase.assignment.sts.api.CustomerHandler;
import ase.assignment.sts.api.HandlerFactory;
import ase.assignment.sts.api.PortfolioHandler;
import ase.assignment.sts.api.StockHandler;

public class HandlerFactoryJDBCImpl implements HandlerFactory {

	public CustomerHandler getCustomerHandler() {
		return new CustomerHandlerImpl();
	}

	public PortfolioHandler getPortfolioHandler() {
		return new PortfolioHandlerImpl();
	}

	public StockHandler getStockHandler() {
		return new StockHandlerImpl();
	}

	public boolean isActive() throws RemoteException {
		// Always active
		return true;
	}
}
